package br.Entidade;

import android.os.Bundle;
import android.util.Log;
import br.facebook.android.AsyncFacebookRunner;
import br.facebook.android.DialogError;
import br.facebook.android.FacebookError;



public class WallPostDialogListener implements
br.facebook.android.Facebook.DialogListener {
	
public	AsyncFacebookRunner	mAsyncRunner;
	
/**
* Called when the dialog has completed successfully
*/

WallPostDialogListener( AsyncFacebookRunner runn){
	mAsyncRunner=runn;		
}

public void onComplete(Bundle values) {
final String postId = values.getString("post_id");
if (postId != null) {
    Log.d("FB Sample App", "Dialog Success! post_id=" + postId);
    mAsyncRunner.request(postId, new WallPostRequestListener());
} else {
    Log.d("FB Sample App", "No wall post made");
}
}

@Override
public void onCancel() {
// No special processing if dialog has been canceled
}

@Override
public void onError(DialogError e) {
// No special processing if dialog has been canceled
}

@Override
public void onFacebookError(FacebookError e) {
// No special processing if dialog has been canceled
}
}
